package Work.Map;

import java.util.HashMap;
import java.util.Map;

public class TestMap {
    public static void main(String[] args) {
        Map< Integer,String> StudenMap = new HashMap<>();
        StudenMap.put(120, "韬");
        StudenMap.put(219, "小张");
        StudenMap.put(322, "小明");
        StudenMap.put(421, "老莫");

        StudenMap.forEach(
                (id, name) -> System.out.println(id + "：" + name + " ")
        );


        System.out.println(StudenMap.get(219));
    }
}
